package com.aspose.cells;

class zbug extends zbz {
   public zbug() {
      this.c(426);
      this.b(64);
   }

   void a(znb var1) {
      this.c = new byte[64];
      byte var2 = 0;
      System.arraycopy(var1.n.a(), 0, this.c, var2, 16);
      int var4 = var2 + 16;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.q), 0, this.c, var4, 2);
      var4 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.D()), 0, this.c, var4, 2);
      var4 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.H()), 0, this.c, var4, 2);
      var4 += 4;
      this.c[var4] = var1.c().a();
      var4 += 4;
      int var3 = 0;
      if (var1.n()) {
         var3 |= 1;
      }

      if (var1.v()) {
         var3 |= 2;
      }

      if (var1.w()) {
         var3 |= 4;
      }

      if (var1.x()) {
         var3 |= 8;
      }

      if (var1.B()) {
         var3 |= 16;
      }

      if (var1.A()) {
         var3 |= 32;
      }

      if (var1.e().getCenterHorizontally()) {
         var3 |= 64;
      }

      if (var1.e().getCenterVertically()) {
         var3 |= 128;
      }

      if (var1.e().getPrintHeadings()) {
         var3 |= 256;
      }

      if (var1.e().getPrintGridlines()) {
         var3 |= 512;
      }

      if (var1.e().isPercentScale()) {
         var3 |= 1024;
      }

      if (var1.r()) {
         var3 |= 2048;
      }

      if (var1.s()) {
         var3 |= 4096;
      }

      if (var1.m()) {
         var3 |= 8192;
      }

      if (var1.o()) {
         var3 |= 16384;
      }

      if (var1.y()) {
         var3 |= 32768;
      }

      if (!var1.z()) {
         var3 |= 65536;
      }

      if (var1.u()) {
         var3 |= 131072;
      }

      if (var1.t()) {
         var3 |= 262144;
      }

      if (var1.k()) {
         var3 |= 524288;
      }

      if (var1.l()) {
         var3 |= 2097152;
      }

      if (var1.q()) {
         var3 |= 33554432;
      }

      switch(var1.E()) {
      case 1:
         var3 |= 67108864;
         break;
      case 2:
         var3 |= 134217728;
      }

      if (var1.G() && var1.E() == 1) {
         var3 |= 536870912;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var3), 0, this.c, var4, 4);
      var4 += 4;
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.p.StartRow), 0, this.c, var4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.p.EndRow), 0, this.c, var4 + 2, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.p.StartColumn), 0, this.c, var4 + 4, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.p.EndColumn), 0, this.c, var4 + 6, 2);
      var4 += 8;
      if (var1.e > 0.0D) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.e), 0, this.c, var4, 8);
      }

      if (var1.f > 0.0D) {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.f), 0, this.c, var4 + 8, 8);
      }

      var4 += 16;
      if (!var1.g) {
         this.c[var4] = this.c[var4 + 1] = this.c[var4 + 2] = this.c[var4 + 3] = -1;
      } else {
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.c().getFirstVisibleColumnOfRightPane()), 0, this.c, var4, 2);
         System.arraycopy(com.aspose.cells.b.a.zc.a(var1.c().getFirstVisibleRowOfBottomPane()), 0, this.c, var4 + 2, 2);
      }

      var4 += 4;
   }
}
